<?php
namespace app\common\validate;

use think\Validate;

class DownloadValidate extends Validate{

    protected $rule = [
        'title'=>'require',
        'desc'=>'require',
        'file_id'=>'require',
        'cate'=>'require'
    ];

    protected $message = [
        'title.require'=>'标题必填',
        'desc.require'=>'描述必填',
        'file_id.require'=>'请上传文件',
        'cate.require'=>'请选择分类'
    ];

}